package materials;
import math.Vector3D;

public class Material {

    private Vector3D color;
    private double reflection;
    private double emmit;
    private boolean glass;


    public Material( Vector3D color , double reflection ,double emmit,boolean glass) {
	this.reflection = reflection;
	this.color = color;
	this.setGlass( glass );
	this.setEmmit( emmit );
    }
    
    public Vector3D GetRefColor(Vector3D otherColor){
	return color.mult( reflection ).add( otherColor.mult( 1 - reflection ) );
    }

    public Vector3D getColor() {
        return color;
    }

    public double getReflection() {
        return reflection;
    }

    public void setEmmit( double emmit ) {
	this.emmit = emmit;
    }

    public double getEmmit() {
	return emmit;
    }

    public void setGlass( boolean glass ) {
	this.glass = glass;
    }

    public boolean isGlass() {
	return glass;
    }
    

}
